import fetch from '../utils/Fetch';

/**
 * 登录
 */
export const loginApi = (param) => fetch({
  url: 'auth/login',
  method: 'post',
  data: param || {}
});

/**
 * 注册
 */
export const registerApi = (param) => fetch({
  url: 'auth/register',
  method: 'post',
  data: param || {}
});